all: ../grmr/labanParser.h
	g++ -fPIC -g -c -Wall -I. -I../grmr/ -I../check/ -I../translate -I../graph/ translate.cpp
	g++ -shared -Wl,-soname,libtranslate.so \
	-o libtranslate.so translate.o -lc
	rm -r translate.o
	mv libtranslate.so ../../lib/libtranslate.so

../grmr/labanParser.h:
	cd ../grmr/; make

clean:
	cd ../grmr/; make clean
	cd ../translate/; rm -rf translate.o
	cd ../../lib/; rm -rf libtranslate.so
